package hedron.view;

import static hedron.i18n.Internationalization._;
import hedron.Activator;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.DateTime;
import org.eclipse.ui.part.ViewPart;

public class CalendarView extends ViewPart {
	public static final String ID = "HEDRON.CalendarView";
	DateTime calendar;
	@Override
	public void createPartControl(Composite parent) {
		calendar = new DateTime(parent, SWT.CALENDAR);

		this.setPartName(_("View.Calendar.Title"));
		this.setTitleImage(Activator.getImage("icons/contacts.png"));
		// calendar.addSelectionListener(new SelectionAdapter() {
		// public void widgetSelected(SelectionEvent e) {
		// System.out.println("calendar date changed");}
		// });
	}

	@Override
	public void setFocus() {
		calendar.setFocus();
	}

}
